package com.prtek.reminder.activity;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import butterknife.ButterKnife;
import com.prtek.iis.grammar.Expression;

/**
 * Created by jarly on 2018/9/17.
 */

public abstract class BaseActivity extends AppCompatActivity {

  protected Context mContext;

  @Override protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(getLayoutId());
    ButterKnife.bind(this);
    mContext = this;
    init();
    initData();
    initListener();
  }

  protected void initListener() {
  }

  protected void initData() {
  }

  protected abstract void init();

  protected abstract int getLayoutId();

  protected abstract Expression getExpression();
}
